package com.simulation.superlotto.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.simulation.superlotto.model.Rule;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @author ：XXX
 * @date ：Created in 2020/12/3
 * @description ：
 * @version: 1.0
 */
public interface RuleDao extends BaseMapper<Rule> {
    @Select("select * from rule where week =#{week} and  day>=#{a} ORDER BY day limit 1")
    Rule selectRule(@Param("week") String week, @Param("a") int a);
}
